package fengstyle.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "seata-stock")
public interface StockFeign {

    @GetMapping("/stock/add")
    public void addStock(@RequestParam("id") Integer id, @RequestParam("no") String no, @RequestParam("userName") String userName);

    @GetMapping("/stock/addException")
    public void addStockException(@RequestParam("id") Integer id, @RequestParam("no") String no, @RequestParam("userName") String userName);
}
